<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
    />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>iOS风格卡片堆叠</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background: #f5f5f7;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        padding: 40px;
      }

      .card-stack {
        position: relative;
        width: 350px;
        height: 500px;
      }

      .card {
        position: absolute;
        width: 100%;
        height: 100%;
        background: white;
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease, opacity 0.3s ease;
        cursor: pointer;
      }

      .card:nth-child(1) {
        z-index: 5;
        transform: translateY(0) scale(1);
      }

      .card:nth-child(2) {
        z-index: 4;
        transform: translateY(10px) scale(0.95);
        opacity: 0.9;
      }

      .card:nth-child(3) {
        z-index: 3;
        transform: translateY(20px) scale(0.9);
        opacity: 0.8;
      }

      .card:nth-child(4) {
        z-index: 2;
        transform: translateY(30px) scale(0.85);
        opacity: 0.7;
      }

      .card:nth-child(5) {
        z-index: 1;
        transform: translateY(40px) scale(0.8);
        opacity: 0.6;
      }

      .card:hover {
        transform: translateY(-20px) scale(1.05) !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
      }

      .card-icon {
        font-size: 80px;
        margin-bottom: 20px;
      }

      .card-title {
        font-size: 28px;
        font-weight: 600;
        color: #1d1d1f;
        margin-bottom: 10px;
      }

      .card-description {
        font-size: 16px;
        color: #86868b;
        text-align: center;
        line-height: 1.5;
      }

      .card:nth-child(1) .card-icon { color: #007aff; }
      .card:nth-child(2) .card-icon { color: #34c759; }
      .card:nth-child(3) .card-icon { color: #ff9500; }
      .card:nth-child(4) .card-icon { color: #ff3b30; }
      .card:nth-child(5) .card-icon { color: #af52de; }
    </style>
  </head>
  <body>
    <div class="card-stack">
      <div class="card">
        <div class="card-icon">📱</div>
        <div class="card-title">iPhone</div>
        <div class="card-description">强大的A系列芯片，出色的相机系统</div>
      </div>
      <div class="card">
        <div class="card-icon">💻</div>
        <div class="card-title">MacBook</div>
        <div class="card-description">M系列芯片，超长续航，轻薄设计</div>
      </div>
      <div class="card">
        <div class="card-icon">⌚</div>
        <div class="card-title">Apple Watch</div>
        <div class="card-description">健康监测，运动追踪，智能提醒</div>
      </div>
      <div class="card">
        <div class="card-icon">🎧</div>
        <div class="card-title">AirPods</div>
        <div class="card-description">主动降噪，空间音频，无缝连接</div>
      </div>
      <div class="card">
        <div class="card-icon">📺</div>
        <div class="card-title">Apple TV</div>
        <div class="card-description">4K HDR，流畅体验，丰富内容</div>
      </div>
    </div>
  </body>
</html>

